export const ORDER_STATUS_LIST = [
    {
        label: '待付款',
        value: 0,
        color: 'text-red-400',
    },
    {
        label: '待发货/待配送',
        value: 1,
        color: 'text-green-400',
    },
    {
        label: '待收货/配送中',
        value: 2,
        color: 'text-blue-400',
    },
    {
        label: '已完成',
        value: 3,
        color: 'text-orange-400',
    },
    {
        label: '退款中',
        value: 4,
        color: 'text-purple-300',
    },
    {
        label: '退款成功',
        value: 5,
        color: 'text-purple-500',
    },
    {
        label: '退款失败',
        value: 6,
        color: 'text-purple-700',
    },

]

export const getOrderStatusItem = orderStatus => {
    return ORDER_STATUS_LIST.filter(item => item.value === orderStatus)[0]
}